# $Id: CMakeLists.txt 226 2008-03-09 19:18:55Z agjermun $
# CMakeLists for selve byggingen og installasjon av ml278
#
# ml278
# Copyright (C) 2008 Bjørn Øivind Bjørnsen, Aleksander Gjermundsen, Knut Andre Tidemann, Thomas Hansen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

add_executable(mapsplitter mapsplitter.cpp)
add_executable(filegen filegen.cpp)
add_executable(LUT-generator LUT-generator.cpp)

#target_link_libraries(ml278)

#add_dependencies(ml278)

#INSTALL(TARGETS ml278
#	RUNTIME DESTINATION bin
#	LIBRARY DESTINATION lib
#	ARCHIVE DESTINATION lib/static)

# Embed OGRE into the install on Windows and copy the correct plugins.cfg for the platform
#IF(WIN32 AND NOT UNIX)
#	INSTALL(DIRECTORY c:/OgreSDK/bin/release/ DESTINATION bin)
#	INSTALL(FILES plugins.cfg.win32 DESTINATION bin RENAME plugins.cfg)
#ELSE(WIN32 AND NOT UNIX)
#	INSTALL(FILES plugins.cfg DESTINATION bin)
#ENDIF(WIN32 AND NOT UNIX)


#INSTALL(FILES resources.cfg OgreCore.zip DESTINATION bin)
# Make the bin-directory writable for everyone so other people than the owner can write a .cfg-file
# ogre.cfg does not exists if the application has not been run, so do not install it
#INSTALL(FILES ogre.cfg DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ WORLD_WRITE)
